//引入mockjs
import Mock from 'mockjs'
//使用mockjs模拟数据

// 地图信息
Mock.mock(RegExp('/xty/wgAnalysis/mapList' + ".*"), {
  "code": 0,
  "data": [{
      "prvnceId": "811",
      "prvnceName": "北京",
      "prvnceShortName": "北京",
      "排名": "1",
      "电信满意度得分": 78.90,
      "移动满意度得分": 77.60,
      "联通满意度得分": 78.80
    },
    {
      "prvnceId": "812",
      "prvnceName": "天津",
      "prvnceShortName": "天津",
      "排名": "1",
      "电信满意度得分": 80.50,
      "移动满意度得分": 79.70,
      "联通满意度得分": 78.10
    },
    {
      "prvnceId": "813",
      "prvnceName": "河北",
      "prvnceShortName": "河北",
      "排名": "2",
      "电信满意度得分": 79.70,
      "移动满意度得分": 79.30,
      "联通满意度得分": 79.80
    },
    {
      "prvnceId": "814",
      "prvnceName": "山西",
      "prvnceShortName": "山西",
      "排名": "3",
      "电信满意度得分": 77.90,
      "移动满意度得分": 78.60,
      "联通满意度得分": 82.10
    },
    {
      "prvnceId": "815",
      "prvnceName": "内蒙古",
      "prvnceShortName": "内蒙古",
      "排名": "3",
      "电信满意度得分": 76.80,
      "移动满意度得分": 78.90,
      "联通满意度得分": 78.50
    },
    {
      "prvnceId": "821",
      "prvnceName": "辽宁",
      "prvnceShortName": "辽宁",
      "排名": "1",
      "电信满意度得分": 79.80,
      "移动满意度得分": 77.00,
      "联通满意度得分": 76.40
    },
    {
      "prvnceId": "822",
      "prvnceName": "吉林",
      "prvnceShortName": "吉林",
      "排名": "2",
      "电信满意度得分": 79.60,
      "移动满意度得分": 76.80,
      "联通满意度得分": 80.10
    },
    {
      "prvnceId": "823",
      "prvnceName": "黑龙江",
      "prvnceShortName": "黑龙江",
      "排名": "2",
      "电信满意度得分": 78.60,
      "移动满意度得分": 81.40,
      "联通满意度得分": 74.50
    },
    {
      "prvnceId": "831",
      "prvnceName": "上海",
      "prvnceShortName": "上海",
      "排名": "2",
      "电信满意度得分": 77.90,
      "移动满意度得分": 76.00,
      "联通满意度得分": 79.80
    },
    {
      "prvnceId": "832",
      "prvnceName": "江苏",
      "prvnceShortName": "江苏",
      "排名": "2",
      "电信满意度得分": 79.20,
      "移动满意度得分": 83.80,
      "联通满意度得分": 78.00
    },
    {
      "prvnceId": "833",
      "prvnceName": "浙江",
      "prvnceShortName": "浙江",
      "排名": "2",
      "电信满意度得分": 79.20,
      "移动满意度得分": 78.20,
      "联通满意度得分": 81.80
    },
    {
      "prvnceId": "834",
      "prvnceName": "安徽",
      "prvnceShortName": "安徽",
      "排名": "2",
      "电信满意度得分": 80.00,
      "移动满意度得分": 84.30,
      "联通满意度得分": 79.00
    },
    {
      "prvnceId": "835",
      "prvnceName": "福建",
      "prvnceShortName": "福建",
      "排名": "1",
      "电信满意度得分": 78.40,
      "移动满意度得分": 78.20,
      "联通满意度得分": 77.60
    },
    {
      "prvnceId": "836",
      "prvnceName": "江西",
      "prvnceShortName": "江西",
      "排名": "2",
      "电信满意度得分": 77.80,
      "移动满意度得分": 79.20,
      "联通满意度得分": 76.10
    },
    {
      "prvnceId": "837",
      "prvnceName": "山东",
      "prvnceShortName": "山东",
      "排名": "2",
      "电信满意度得分": 78.50,
      "移动满意度得分": 83.70,
      "联通满意度得分": 77.60
    },
    {
      "prvnceId": "841",
      "prvnceName": "河南",
      "prvnceShortName": "河南",
      "排名": "1",
      "电信满意度得分": 79.40,
      "移动满意度得分": 79.20,
      "联通满意度得分": 79.10
    },
    {
      "prvnceId": "842",
      "prvnceName": "湖北",
      "prvnceShortName": "湖北",
      "排名": "1",
      "电信满意度得分": 78.40,
      "移动满意度得分": 74.30,
      "联通满意度得分": 74.80
    },
    {
      "prvnceId": "843",
      "prvnceName": "湖南",
      "prvnceShortName": "湖南",
      "排名": "1",
      "电信满意度得分": 77.60,
      "移动满意度得分": 76.60,
      "联通满意度得分": 77.00
    },
    {
      "prvnceId": "844",
      "prvnceName": "广东",
      "prvnceShortName": "广东",
      "排名": "3",
      "电信满意度得分": 72.40,
      "移动满意度得分": 72.40,
      "联通满意度得分": 74.50
    },
    {
      "prvnceId": "845",
      "prvnceName": "广西",
      "prvnceShortName": "广西",
      "排名": "1",
      "电信满意度得分": 82.80,
      "移动满意度得分": 78.10,
      "联通满意度得分": 72.40
    },
    {
      "prvnceId": "846",
      "prvnceName": "海南",
      "prvnceShortName": "海南",
      "排名": "1",
      "电信满意度得分": 79.70,
      "移动满意度得分": 75.80,
      "联通满意度得分": 74.80
    },
    {
      "prvnceId": "850",
      "prvnceName": "重庆",
      "prvnceShortName": "重庆",
      "排名": "1",
      "电信满意度得分": 80.30,
      "移动满意度得分": 78.00,
      "联通满意度得分": 74.00
    },
    {
      "prvnceId": "851",
      "prvnceName": "四川",
      "prvnceShortName": "四川",
      "排名": "1",
      "电信满意度得分": 81.40,
      "移动满意度得分": 78.10,
      "联通满意度得分": 76.50
    },
    {
      "prvnceId": "852",
      "prvnceName": "贵州",
      "prvnceShortName": "贵州",
      "排名": "2",
      "电信满意度得分": 78.70,
      "移动满意度得分": 79.90,
      "联通满意度得分": 76.10
    },
    {
      "prvnceId": "853",
      "prvnceName": "云南",
      "prvnceShortName": "云南",
      "排名": "3",
      "电信满意度得分": 75.30,
      "移动满意度得分": 80.00,
      "联通满意度得分": 75.70
    },
    {
      "prvnceId": "854",
      "prvnceName": "西藏",
      "prvnceShortName": "西藏",
      "排名": "1",
      "电信满意度得分": 78.40,
      "移动满意度得分": 75.40,
      "联通满意度得分": 77.70
    },
    {
      "prvnceId": "861",
      "prvnceName": "陕西",
      "prvnceShortName": "陕西",
      "排名": "2",
      "电信满意度得分": 75.10,
      "移动满意度得分": 78.80,
      "联通满意度得分": 74.30
    },
    {
      "prvnceId": "862",
      "prvnceName": "甘肃",
      "prvnceShortName": "甘肃",
      "排名": "3",
      "电信满意度得分": 77.50,
      "移动满意度得分": 79.50,
      "联通满意度得分": 78.50
    },
    {
      "prvnceId": "863",
      "prvnceName": "青海",
      "prvnceShortName": "青海",
      "排名": "2",
      "电信满意度得分": 75.00,
      "移动满意度得分": 78.70,
      "联通满意度得分": 74.60
    },
    {
      "prvnceId": "864",
      "prvnceName": "宁夏",
      "prvnceShortName": "宁夏",
      "排名": "3",
      "电信满意度得分": 74.50,
      "移动满意度得分": 77.20,
      "联通满意度得分": 79.50
    },
    {
      "prvnceId": "865",
      "prvnceName": "新疆",
      "prvnceShortName": "新疆",
      "排名": "2",
      "电信满意度得分": 76.10,
      "移动满意度得分": 72.70,
      "联通满意度得分": 80.90
    }
  ],
  "msg": "success"
});
//违规应用趋势分析
Mock.mock(RegExp('/xty/wgAnalysis/appAnalyst'), {
      "code": 0,
      "data": [{
        month: "11/12",
        value: 138,
        ratio: 14.89
      },

        {
          month: "11/13",
          value: 114,
          ratio: 79.49
        },

        {
          month: "11/14",
          value: 714,
          ratio: 75.8
        },

        {
          month: "11/15",
          value: 442,
          ratio: 19.8
        },

        {
          month: "11/16",
          value: 622,
          ratio: 44.5
        }, {
          month: "11/17",
          value: 528,
          ratio: 87.3
        }]
    }
);
//违规类别分析
Mock.mock(RegExp('/xty/wgAnalysis/wgSort'), {
  "code": 0,
  "data": {
      data1:['华为', '中兴', '爱立信', '索尼', '联想', '思科'],
      data2: [{
        value: 135,
        name: '传输',
        

    },
    {
        value: 200,
        name: '传输',
        

    },
    {
        value: 100,
        name: '传输',
        

    },
    {
        value: 50,
        name: '传输',
    },
    {
        value: 300,
        name: '传输',
    },
    {
        value: 90,
        name: '传输',
    },
]
  }
}
);
//违规 分发平台违规应用分析
Mock.mock(RegExp('/xty/wgAnalysis/wgFenXi'), {
  "code": 0,
  "data": {
      data1:['苹果商店', '三星商店', '华为商店', '小米商店', '谷歌商店','vivo商店'],
      data2:[39, 31, 18, 12,40, 20]
  }
}
);
// 任务监管API
// 1.查询检测任务状态情况---雷达图
Mock.mock(RegExp('/xty/task/radarList' + ".*"), {
      "code": 0,
      "msg": "success",
      "data": [582, 421, 625, 622, 265]
    }
);

// 2.查询管局检测任务及线索上报情况---横向双柱子图
Mock.mock(RegExp('/xty/task/barList' + ".*"), {
      "code": 0,
      "msg": "success",
      "data": {
        data1: [3, 20, 62, 34, 55, 65, 33, 22, 44,66],
        data2: [11, 38, 23, 39, 66, 66, 79, 65, 33, 22],
        province: ['北京', '上海', '湖北', '湖南', '山东', '河南', '山西', '天津', '四川', '广东']
      }
    }
);

// 动态感知
// 1.查询分发商店检测比例---仪表盘
Mock.mock(RegExp('/xty/task/gaugeList' + ".*"), {
      "code": 0,
      "msg": "success",
      "data": {
        value1: '44',
        value2: '44',
        value3: '44',
        value4: '44',
      }
    }
);
// 2.查询分发商店基本信息明示比例---象形柱图
Mock.mock(RegExp('/xty/task/pictorialList' + ".*"), {
      "code": 0,
      "msg": "success",
      "data": {
        name: ['苹果商店', '三星商店', '华为商店', '小米商店', '百度商店', '苹果商店', '三星商店', '华为商店'],
        value: [123, 60, 25, 18, 12, 9, 2, 1]
      }
    }
);
// 3.查询违规应用趋势预测---折线图
Mock.mock(RegExp('/xty/task/lineList' + ".*"), {
      "code": 0,
      "msg": "success",
      "data": {
        name: ["11/10", "11/11", "11/12", "11/13", "11/14", "11/15", "11/16"],
        value: [67, 97, 51, 338, 32, 11, 1]
      }
    }
);

// 3.查询违规应用趋势预测---折线图
Mock.mock(RegExp('/xty/task/twoLineList' + ".*"), {
      "code": 0,
      "msg": "success",
      "data": {
        todayData: [502.84, 205.97, 332.79, 281.55, 398.35, 214.02],
        dayData:["11/10", "11/11", "11/12", "11/13", "11/14", "11/15"],
        value: [281.55, 398.35, 214.02, 179.55, 289.57, 356.14, ]
      }
    }
);
